﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Routing;
using System.IO;

namespace JqueryMvc.Mvc
{
	/*public class ComponentViewLocator : WebFormViewLocator
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="ComponentViewLocator"/> class. 
		/// This ViewLocator looks 		
		/// for partial views
		/// </summary>
		public ComponentViewLocator()
		{
			var viewLocationFormats = new List<String>() { 
                "~/Views/{1}/_{0}.ascx", 
                "~/Views/Shared/_{0}.ascx"
			};
			viewLocationFormats.AddRange(base.ViewLocationFormats);
			base.ViewLocationFormats = viewLocationFormats.ToArray();
		}

		virtual public string GetViewPath(RequestContext requestContext, string name)
		{
			return GetPath(requestContext, this.ViewLocationFormats, name);
		}

	}*/
}
